var mongoose = require('mongoose');
mongoose.Promise = require('bluebird');
var Schema = mongoose.Schema;

var FocusSchema = new Schema({
  // 关注者
  userid: String,
  // 被关注者
  touser: {type: Schema.Types.ObjectId, ref:'User'},
  // 关注时间
  create_at: { type: Date, default: Date.now },
});



// 生成Model
module.exports = mongoose.model('Focus', FocusSchema);
